package io.shallwe._admin.basedata.material;

import com.jfinal.core.Controller;
import com.jfinal.kit.Ret;
import com.jfinal.validate.Validator;

/**
 * @author : 王小伟
 * @date : 2019-07-28 17:17:01
 */
public class MaterialNoNameValidator extends Validator {
    @Override
    protected void validate(Controller c) {
        setRet(Ret.fail());
        setShortCircuit(true);
    }

    @Override
    protected void handleError(Controller c) {
        c.renderJson(getRet());
    }
}
